class IndexController < ApplicationController
  auto_complete_for :thing,:title
  def index
    #    render :layout=>false
    @application_description = "Home".t

    @things = Thing.find(:all,:limit=>43,:order=>"created_at desc")

    @user_lists = User.find(:all,:order=>"created_at DESC",:limit=>10)

    @tags = Thing.tag_counts

    #anyway, I think the has_more checking is not needed,
    #since it's oberviously will have more than 43 things when the web is public

    #check if the "...more" href link needed
    #@has_more_things = Thing.find(:all, :order => "created_at DESC", :limit => 1, :offset => 10)

    #check if the "...more" href link needed
    #@has_more_users = Thing.find(:all, :order => "created_at DESC", :limit => 1, :offset => 10)


  end
end
